package com.test.groovy

/**
 * Song--GroovyTest
 *
 * @author: Jovi
 *
 * @createTime: 2018-06-11 14:45
 *
 * */
class Song {
    def name
    String artist
    def genre

    def getGenre() {
        genre?.toUpperCase()
    }

    @Override
    String toString() {
        "Song + ${name},${artist},${getGenre()}"
    }


}
